import com.itheima.domain.Account;
import com.itheima.service.AccountService;
import com.itheima.service.impl.BuyImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) throws InterruptedException {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        AccountService acc = (AccountService) ctx.getBean("accountService");
        acc.transferMoney(1,2,100.0);

    }
}
